package hlhj.fhp.checkpoint.atys

import hlhj.fhp.checkpoint.BaseAty
import hlhj.fhp.checkpoint.R
import hlhj.fhp.checkpoint.iview.StatementView
import hlhj.fhp.checkpoint.javaBean.StatementBean
import hlhj.fhp.checkpoint.presenter.StatementPresenter
import kotlinx.android.synthetic.main.aty_statement.*

/**
 * Created by Never Fear   on 2018\11\22 0022.
Never More....
 */
class StatementAty :BaseAty<StatementView,StatementPresenter>(), StatementView {
    override fun initView() {

    }

    override fun setStatement(statementBean: StatementBean) {
        webView?.loadDataWithBaseURL(null, statementBean.info.content, "text/html", "UTF-8", null);
    }

    override fun logicStart() {
        presenter?.getStatement(this)
    }

    override fun setListener() {
    }

    override fun bindView(): StatementView {
        return this
    }

    override fun createPresenter(): StatementPresenter {
        return StatementPresenter()
    }

    override val contentId: Int= R.layout.aty_statement
}